<template>
	<view class="container">
		<view class="header">
			<view class="header-item gui-color-black">单号： {{ form.code }}</view>
			<!-- <view class="header-item gui-color-black" style="margin-top: 15rpx;">盘点人 123457899</view> -->
			<view class="gui-margin-top">
				<textarea v-model="form.remark" name="remark" value="" placeholder="请输入备注选填"
					class="gui-textarea gui-bg-gray gui-border-box" style="width:690rpx;" />
			</view>
		</view>
		<view class="footer">
			<view class="gui-text-center gui-bg-light footer-button" hover-class="gui-tap" @click="toProduct">
				<text
					class="gui-text gui-color-white gui-footer-large-button-text gui-block-text gui-text-center">开始盘点</text>
			</view>
		</view>
		<view style="height:80rpx"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form:{
					remark:"",
					code:''
				}
			}
		},
		onLoad() {
			this.form.code = 'PD'+this.$dayjs().format('YYYYMMDDHHmmss')
			uni.setStorageSync('message', '');
		},
		methods: {
			toProduct(){
				uni.setStorageSync('message',this.form);
				uni.navigateTo({
					url: `/pages/inventory/product`
				})
			}
		}
	}
</script>

<style scoped lang="scss">

	.header{
		background-color: #fff;
		padding:30rpx;
		box-shadow: 0 0 5px  #eee;
	}
	.gui-bg-light{
		background-color: #9e7e35;
	}
	.footer{
		background-color: #fff;
	}
</style>